package com.jf.test.mvvm.base

import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.ViewModel

/**
 * @Class: BaseVM
 * @Description:
 * @author: github.com/jackyflame
 * @Date: 2021/3/10
 */
abstract class BaseVM<P : BasePresenter> : ViewModel(){

    var mPresenter: P? = null

    protected abstract fun initPresenter(owner: LifecycleOwner): P

}